package org.jbfilter.core.fcomps.wrapper;

import org.jbfilter.core.CleaningStrategy;

public abstract class CleaningStrategyWrapper<E> implements CleaningStrategy {

	private CleaningStrategy parent;
	
	public CleaningStrategyWrapper(CleaningStrategy parent) {
		super();
		this.parent = parent;
	}

	@Override
	public void clean() {
		if (parent != null) {
			parent.clean();
			cleanCallback();
		}

	}
	public abstract void cleanCallback();

}
